package com.blb.community_admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.community_admin.entity.ZyUnit;

import java.util.List;

public interface IZyUnitService extends IService<ZyUnit> {
    /**
     * 根据buildingName查询对应单元
     * @param buildingName
     * @return
     */
    List<ZyUnit> selectUnit(String buildingName);

    //分页
    IPage<ZyUnit> selectUnitPage(Long current, Long size);

    //模糊分页查询
    IPage<ZyUnit> fuzzyPage(Long current, Long size, String unitName, String unitCode, String buildingName);
}
